
package usyd.comp5348;

import java.util.List;
import javax.ejb.Remote;

/**
 * This is the business interface for Stock enterprise bean.
 */
@Remote
public interface StockRemote {
    int createItem(StockInfo stock) throws StockException;

    void modifyItem(StockInfo stock) throws StockException;

    void deleteItem(int id) throws StockException;

    StockInfo getItemById(int id) throws StockException;

    List getItemByWarehouse(String warehouse) throws StockException;

    int getHoldingByWarehouse(int catalogue_id, String warehouse) throws StockException;

    void sold(int catalogue_id, int quantity, String warehouse) throws StockException;

    int bought(int catalogue_id, int quantity, String warehouse) throws StockException;
    
}
